#include "colorlabel.h"

ColorLabel::ColorLabel(QWidget *parent):QLabel(parent){}

void ColorLabel::mousePressEvent(QMouseEvent* event) {
    if (event->button() & Qt::LeftButton) {
        QColor color_input = QColorDialog::getColor();
        emit LabelIsClicked(color_input);
    }
}
